package com.jiuyi.service;

import com.jiuyi.common.R;
import com.jiuyi.dto.AdminDishDto;
import com.jiuyi.entity.Dish;
import com.jiuyi.vo.AdminSelectDishListVo;
import com.jiuyi.vo.AdminSelectDishVo;
import com.jiuyi.vo.AdminUpdateDishVo;
import com.jiuyi.vo.DishListVo;

import java.util.List;

/**
 * DATA: 2022/10/19
 * Author: 晨夕
 */
public interface DishService {
    //添加菜品
    R addDish(AdminDishDto adminDishDto);
    //查询菜品
    R<AdminSelectDishVo> selectDish(int page, int pageSize, String name);
    //根据id查询菜品
    R<AdminUpdateDishVo> selectDishById(Long id);
    //修改菜品
    R updateDish(AdminDishDto adminDishDto);
    //删除菜品
    R deleteDish(Long[] ids);
    //停售菜品
    R stopSell(Long[] ids);
    //起售
    R startSell(Long[] ids);
    //查询菜品集合
    R<List<AdminSelectDishListVo>> dishList(Dish dish);
}
